<?php
namespace app\admin\controller;
// use think\Db;
// use think\captcha\Captcha;
class Typeshop extends Come{
    public function typeshop(){
       
        return $this->fetch('typeshop');
    }
    public function tianjia(){
        $data=input('param.','','htmlspecialchars');
        $name=input('param.name','','htmlspecialchars');
        $data['time']=time();

        $ret=db('goods_type')->insert($data);
        if($ret>0){
            $this->success('发布成功!','admin/typeshop/typeshop');
        }else{
            $this->error('发布失败');
        }
    }
}